package relatorio.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conexao {
	static {		
		 try {
			 Class.forName("org.postgresql.Driver");	           
	     } catch ( ClassNotFoundException exc ) {	
	            exc.printStackTrace();
	     }
	}
	
	public static Connection getConnection() throws SQLException{
		 String url="jdbc:postgresql://localhost:5432/idnorp_sistema";
		 String usuario="postgres";
		 String senha="soares";		 
		 return DriverManager.getConnection(url,usuario,senha);
	}


}
